﻿@model IEnumerable<DA.Department>

@{
    ViewBag.Title = Translator.Translate("departments");
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

<h2>Index</h2>

<p>
    @Html.ActionLink(Translator.Translate("_create"), "Edit")
</p>
<table>
    <tr>
        <th>
            @Translator.Translate("dept_name")
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.DeptName)
        </td>
        <td>
            @Html.ActionLink(Translator.Translate("_edit"), "Edit", new { id = item.DeptId }) |
            @Html.ActionLink(Translator.Translate("_details"), "Details", new { id = item.DeptId }) |
            @Html.ActionLink(Translator.Translate("_delete"), "Delete", new { id = item.DeptId })
        </td>
    </tr>
}

</table>
